package cn.kgc.service.impl;


import cn.kgc.bean.dto.CollectionDto;
import cn.kgc.bean.pojo.CCaseCollection;
import cn.kgc.mapper.CollectionMapper;
import cn.kgc.service.ConllectionService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class ConllectionServiceImpl implements ConllectionService {
    @Resource
    private CollectionMapper collectionMapper;

    @Override
    public List<CollectionDto> getConllection(Integer userId,
                                              String caseName,
                                              String num,
                                              String undertaker) {
        return collectionMapper.getConllection(userId,caseName,num,undertaker);
    }

    @Override
    public int deleteInfo(int userid,int caseId) {
        return collectionMapper.deleteInfo(userid,caseId);
    }

    @Override
    public int addInfo(CCaseCollection cCaseCollection) {
        return collectionMapper.addInfo(cCaseCollection);
    }
}
